import Vue from 'vue';
import App from './App.vue';
import router from "@/route"
import requests from "@/api/request"
Vue.config.productionTip = false;
Vue.config.silent = true;
//element-Ui导入
import {
    Pagination,
    Icon,
    Form,
    Input,
    FormItem,
    Tooltip,
    Message,
    Menu,
    MenuItem,
    MenuItemGroup,
    Submenu,
    Col,
    Select,
    Option,
    Button,
    DatePicker,
    RadioGroup,
    Radio,
    Popconfirm,
    Aside,
    Container,
    Main,
    Header,
} from "element-ui";

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.prototype.$axios = requests;
Vue.use(ElementUI);
Vue.use(Pagination);
Vue.use(Icon);
Vue.use(Form);
Vue.use(Input);
Vue.use(FormItem);
Vue.use(Col);
Vue.use(Select);
Vue.use(Option);
Vue.use(Button);
Vue.use(DatePicker);
Vue.use(RadioGroup);
Vue.use(Radio);
Vue.use(Popconfirm);
Vue.use(Tooltip);
Vue.use(Menu);
Vue.use(MenuItem);
Vue.use(MenuItemGroup);
Vue.use(Submenu);
Vue.use(Container);
Vue.use(Aside);
Vue.use(Main);
Vue.use(Header);
Vue.prototype.$message = Message;
new Vue({
    router,
    //配置全局事件总线
    beforeCreate() {
        Vue.prototype.$bus = this;
    },
    render: h => h(App),
}).$mount('#app')



